package com.yuyang.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuyang.common.utils.PageUtils;
import com.yuyang.gulimall.product.entity.AttrEntity;
import com.yuyang.gulimall.product.entity.AttrGroupEntity;
import com.yuyang.gulimall.product.vo.AttrGroupRelationVo;
import com.yuyang.gulimall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author yuyang
 * @email yuyang@gmail.com
 * @date 2022-11-21 21:46:30
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getAttrRelation(Long attrGroupId);

    void deleteAttrRelation(AttrGroupRelationVo[] attrGroupRelationVos);

    PageUtils getNoAttrRelated(Map<String, Object> params, Long attrGroupId);

    void saveAttrRelated(List<AttrGroupRelationVo> attrGroupRelationVos);
//    获取分类下所有分组&关联属性
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrByCatelogId(Long catelogId);
}

